package adminUserLoginLogHandler

import (
	exampleDtoApiPbAdminUserLoginLog "gitee.com/krio/ginc/example/dto/api/pb/admin/user/login_log"
	adminUserLoginLogService "gitee.com/krio/ginc/example/internal/admin/user/login_log/service"
	"github.com/gin-gonic/gin"
)

// AdminUserLoginLogList 列表
func AdminUserLoginLogList(ctx *gin.Context, req *exampleDtoApiPbAdminUserLoginLog.AdminUserLoginLogListReq) (*exampleDtoApiPbAdminUserLoginLog.AdminUserLoginLogListResp, error) {
	data, err := adminUserLoginLogService.AdminUserLoginLogList(ctx, req)
	if err != nil {
		return nil, err
	}
	return data, nil
}

// AdminUserLoginLogDetail 详情
func AdminUserLoginLogDetail(ctx *gin.Context, req *exampleDtoApiPbAdminUserLoginLog.AdminUserLoginLogDetailReq) (*exampleDtoApiPbAdminUserLoginLog.AdminUserLoginLogInfo, error) {
	data, err := adminUserLoginLogService.AdminUserLoginLogDetail(ctx, req)
	if err != nil {
		return nil, err
	}
	return data, nil
}
